package cn.wolfcode.rbac.mapper;

import cn.wolfcode.rbac.domain.Permission;
import cn.wolfcode.rbac.domain.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    List<Role> listAll();
    //void deleteById(Long id);
    void insert(Role role);
    void insertRelationRoleIdAndPermissionId(@Param("roleId") Long roleId,@Param("permissionId") Long permissionId);
    List<Permission> selectPermissionByRoleId( Long id);
    Role seletById(Long id);
    void updateById(Role role);
    void deleteRelationById(Role role);
}
